<%@ include file="/taglibs.jsp"%>
<%@ page import = "com.pay.sms.model.MoreMessage" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>信息</title>
<script type="text/javascript">
function setvL(){
	window.opener.document.getElementById("message").value=document.getElementById("info").value;
	window.opener.WordsCount();
	window.close();
}

function setvs(obj){
	document.getElementById("info").value=obj;
}
</script>
</head>

  <body>
  	<table>
  	<c:forEach items="${message}" var="entity">
  		<tr>
  			<td><input type="radio" name="mes" value="${entity.id}" onclick="setvs('${entity.message}')"/>${entity.message}</td><td></td>
  		</tr>
  	</c:forEach>
  	<tr>
  		<td colspan="2"><input type="hidden" id="info"/><input type="button" name="mes" value="确定" onclick="setvL()"/></td>
  	</tr>
  	</table> 
  </body>
</html>
